<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>tooltips的测试demo</title>
   <link href="demo1.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="one">
    <div class="header"></div>
    <input type="text" placeholder="请输入tips" id="tips"/>
    <div class="box">
        <span class="tooltip bottomTips">我是tips</span>
        <span class="tooltip leftTips">我是tips</span>
        <span class="tooltip rightTips">我是tips</span>
        <span class="tooltip topTips">我是tips</span>
    </div>
</div>
<div class="two">
    <input type="button" value="bottom" id="bottom"/>
    <input type="button" value="left" id="left"/>
    <input type="button" value="right" id="right"/>
    <input type="button" value="top" id="top"/>
</div>
<input type="button" value="取消" id="hidden"/>
<script src="demo1.js"></script>
</body>
</html>